package com.education.wisdom.service;


import com.education.wisdom.pojo.Agreement;

import java.util.List;

/**
 * 协议 服务层
 * 
 * @author ruoyi
 * @date 2019-02-28
 */
public interface IAgreementService 
{
	/**
     * 查询协议信息
     * 
     * @param id 协议ID
     * @return 协议信息
     */
	public Agreement selectAgreementById(Integer id);
	public Agreement selectAgreementBytype(String type);

	/**
     * 查询协议列表
     * 
     * @param agreement 协议信息
     * @return 协议集合
     */
	public List<Agreement> selectAgreementList(Agreement agreement);
	
	/**
     * 新增协议
     * 
     * @param agreement 协议信息
     * @return 结果
     */
	public int insertAgreement(Agreement agreement);
	
	/**
     * 修改协议
     * 
     * @param agreement 协议信息
     * @return 结果
     */
	public int updateAgreement(Agreement agreement);
		
	/**
     * 删除协议信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteAgreementByIds(String ids);

}
